<%-- 
    Document   : doctors
    Created on : May 18, 2011, 9:03:16 PM
    Author     : suraj
--%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<br/>
<br/>
<table id="cas-list-table"> 
    <caption>Doctors</caption> 
    <thead> 
        <tr> 
            <th style="width: 3%">#</th> 
            <th style="width: 7%">ID</th> 
            <th>Name</th> 
            <th>Speciality</th> 
        </tr> 
    </thead> 
    <tbody> 
        <logic:iterate id="doctor" name="listDoctors" indexId="count">  
            <tr class="<%=count % 2 == 0 ? "odd" : ""%>">  
                <td><%=count + 1%></td>
                <td><bean:write name="doctor" property="id"/></td>  
                <td>
                    <bean:write name="doctor" property="firstName"/>&nbsp;
                    <bean:write name="doctor" property="secondName"/>&nbsp;
                    <bean:write name="doctor" property="familyName"/>
                </td>  
                <td><bean:write name="doctor" property="speciality"/></td>  
            </tr>  
        </logic:iterate>  
    </tbody>
</table>
